package com.example.xiaomengai.mapper;

import com.example.xiaomengai.entity.RelationProjection;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface RelationProjectionMapper {
//    // 动态关系类型查询（注意反引号处理特殊字符）
//    @Query("MATCH (start)-[r:` + {#relation}`]->(end) RETURN start, r, end")
//    List<RelationProjection> findRelationsByType(@Param("relation") String relation);

}
